package service

type CountArticleRequest struct {
	Name string `form:"name" binding:"max=100"`
	State uint8 `form:"state,default=1" binding:"oneof= 0 1"`
}

type ArticleListRequest struct {
	Name string `form:"name" binding:"max=100"`
	State uint8 `form:"state,default=1" binding:"oneof= 0 1"`
}

type CreateArticleRequest struct {
	Name string `form:"name" binding:"required,min=1,max=100"`
	CreatedBy string `form:"created_by" binding:"required,min=1,max=100"`
	State uint8 `form:"state,default=1" binding:"oneof= 0 1"`
}

type UpdateArticleRequest struct {
	ID uint32 `form:"id" binding:"required,gte=1"`
	Name string `form:"name" binding:"required,min=1,max=100"`
	State uint8 `form:"state,default=1" binding:"oneof= 0 1"`
	ModifiedBy string `form:"modified_by" binding:"required,min=1,max=100"`
}
